answer "CAUTION: Do you want to delete this record ?" with "CANCEL" or "OK"
end mouseUp
-- part 5 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=82 top=172 right=194 bottom=182
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Alert Box #1
----- HyperTalk script -----
on mouseUp
get PopAlert(1,0,"CAUTION","This operation will take a lot of time")
end mouseUp
-- part 6 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=207 top=173 right=195 bottom=307
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Alert Box #2
----- HyperTalk script -----
on mouseUp
get PopAlert(2,0,"PATIENCE!", "This operation is going to take a lot of time")
end mouseUp
-- part 7 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=340 top=173 right=195 bottom=440
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Alert Box #3
----- HyperTalk script -----
on mouseUp
get PopAlert(3,0,"CAUTION","Do you really want to delete this card ?")
end mouseUp
-- part contents for card part 1
----- text -----
is missing something important, an ICON. A true alert box should be like this:
-- part contents for card part 2
----- text -----
This is possible with the PopAlert XFCN. This is the command structure:
PopAlert (AlertId,IconId,Title,Message)
AlertId - Indicates which alert box to be drawn. The three choices provided are : alert box with a "CONTINUE" button, alert box with a "OK" button, and alert box with a "OK" button and a "CANCEL" button. Use either 1, 2 , or 3 respectively to indicate desired alert box.
-- part contents for card part 3
----- text -----
The "Alert Mechanism" provides applications with a means of reporting errors or giving warnings. An alert box appears when something has gone wrong or must be brought to user's attention. Although an alert box may be simulated using the Hypertalk Answer Command, this implementation